package com.yyj.shoppingOnLine.common.util;

import java.util.Random;

/**
 * 正则表达式 
 * @author Administrator
 *
 */
public class RegexUtil
{
	private static String allStr="abcdefghijklmnopqrstuvwxyz0123456789";
	/**
	 * 生成随机数
	 */
	public static String proccedStr(int size)
	{
		StringBuffer sb=new StringBuffer();
		Random rad=new Random();
		
		for (int i = 0; i < size; i++)
		{
			int radNum= rad.nextInt(allStr.length());
			char charStr=allStr.charAt(radNum);
			sb.append(charStr);
		}
		return sb.toString();
	}
}
